package com.atguigu.boot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class SpringBoot09HelloTestApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringBoot09HelloTestApplication.class, args);
        System.out.println(context.containsBean("myApplicationContextInitializer"));
        System.out.println(context.containsBean("myApplicationListener"));
        System.out.println(context.containsBean("mySpringApplicationRunListener"));
        System.out.println(context.containsBean("myApplicationRunner"));
        System.out.println(context.containsBean("myCommandLineRunner"));
    }

}
